package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.Type;

import java.util.List;

/**
 * @author Michael Wang
 */

// $Id$
public interface TypeManager {

    List<Type> getAllType(DataSourceKey key);

    Type getTypeById(DataSourceKey key, Long id);

    Type getTypeByName(DataSourceKey key, String name);

    Type saveType(DataSourceKey key, Type type);

    void deleteTypeById(DataSourceKey key, Long id);

    List<Type> getTypes(DataSourceKey key);
}
